<?php
require_once('EmsModelObject.php');
class Address extends EmsModelObject
{

	private $street;
	public function Street($value)
	{
	    if($value == NULL)
	        return $this->street;
	    $this->street = $value;        
	            
	}
	
	private $number;
	public function Number($value)
	{
	    if($value == NULL)
	        return $this->number;
	    $this->number = $value;        
	            
	}
	
	private $township;
	public function Township($value)
	{
	    if($value == NULL)
	        return $this->township;
	    $this->township = $value;        
	            
	}
	
	private $regrion;
	public function Region($value)
	{
	    if($value == NULL)
	        return $this->regrion;
	    $this->regrion = $value;        
	            
	}
	
	private $state;
	public function State($value)
	{
	    if($value == NULL)
	        return $this->state;
	    $this->state = $value;        
	            
	}
	
	private $country;
	public function Country($value)
	{
	    if($value == NULL)
	        return $this->country;
	    $this->country = $value;        
	            
	}
	
	public function __construct($entity)
	{
		//Map Entity to Object
	}
	
	public function IsValid()
	{
		//Validate obejct...
	}
	
	public function SaveChanges()
	{
		//Save changes to DB
	}
	
	public static function GetType()
	{
		return __CLASS__;
	}
}
?>